<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
	<!-- 背景 -->
	<div class="warp">
	</div>
	<!-- 头部 -->
	<div class="top">
		<div class="top-left">
		<img src="${path}/resource/images/logo_white.png" class="float-l"></img>	
		</div>
		<div class="top-right">
		<span class="color-w btn-left">管理系统</span><a href="${path}/manage/redirect/allEquip/allEquipList"><span class="color-w btn-white btn-no margin-r-1">监控系统</span></a>
		<span class="color-w btn-left btn-white"><img src="${path}/resource/ysr/images/icon_user.png" class="back-icon"></span><span class="color-w btn-no margin-r-1">admin</span>				
		<span class="color-w btn-all"><a class="color-w" href="${path}/common/redirect/satellite">返回主页 <img src="${path}/resource/ysr/images/back.png" class="back-icon"></a></span>

		</div>
	</div>
	<!-- 左侧下拉列表 -->
	

    <div class="menu-left color-w ">
        
        <dl class="menu-dl ">
            <dt class="font-w5"><a href="${path}/monitor/redirect/userManage" class="color-w"><img src="${path}/resource/images/yhgl.png" class="nav-img">用户管理</a></dt>
            <dd class="first_dd none "></dd>
        </dl>
    
        <dl class="menu-dl">
            <dt id="statistics" class="font-w5"><a href="${path}/monitor/redirect/equipManage" class="color-w"><img src="${path}/resource/images/sbgl.png" class="nav-img">设备管理</a></dt>
            <dd class="first_dd none "></dd>
        </dl>
    
        <dl class="menu-dl">
            <dt id="faultInfo" class="font-w5"><a href="${path}/monitor/redirect/repairManage" class="color-w"><img src="${path}/resource/images/wbgl.png" class="nav-img" >维保管理</a></dt>
       	    <dd class="first_dd none "></dd>
            
        </dl>
    
        <dl class="menu-dl">
            <dt class="font-w5"><a href="${path}/monitor/redirect/sendMsg" class="color-w"><img src="${path}/resource/images/xxts.png" class="nav-img ">消息推送</a></dt>
            <dd class="first_dd none "></dd>
        </dl>
        <div class="menu-btm">
        	<p>中车株洲电力机车研究所有限公司</p>
        	<p>2016&nbsp;&nbsp;版权所有</p>
        </div>
    </div>

<script type="text/javascript">
 	$(function(){
 		
 		$("dt").click(function(){
 		  
 		
 		  var dd=$(this).next('dd');
 		  var dis=dd.css('display');
 		  console.log(dd);
 		  console.log(dis);
		  if(dis=="none"){
		  	 $('dd').slideUp();
		  };		 
		  $(this).nextAll("dd").slideToggle();
		/*   $("dl").removeClass("dl-active"); */

		  /* $(this).parent('dl').addClass("dl-active"); */
		 
		});
 		
 		if(location.href.indexOf('/manage/redirect/statistics') > 0) {
 			$('#statistics').click();
 		}
 		if(location.href.indexOf('/manage/redirect/faultInfo') > 0) {
 			$('#faultInfo').click();
 		}
 	})
</script>
